import callApi from '../utils/request';
import {
  API_ADD_INSURANCE,
  API_HAS_INSURANCE_INFO,
  API_SHOW_WILL,
  API_UPDATE_WILL,
} from '../constants/api';

export function addInsuranceInfo(params) {
  return callApi({
    api: API_ADD_INSURANCE,
    params,
  });
}

export function hasInsuranceInfo(params) {
  return callApi({
    api: API_HAS_INSURANCE_INFO,
    params,
  });
}

export function getWillInfo(params) {
  return callApi({
    api: API_SHOW_WILL,
    params,
  });
}
export function updateWillInfo(params) {
  return callApi({
    api: API_UPDATE_WILL,
    params,
  });
}

